feat: add hotkey to toggle full tool output display#6067
Merged
alexhancock merged 2 commits intoblock:mainfrom Jan 9, 2026
Merged
feat: add hotkey to toggle full tool output display#6067alexhancock merged 2 commits intoblock:mainfrom
alexhancock merged 2 commits intoblock:mainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds a /r command to toggle full tool output display, addressing issue #3196 where important information (Lightning invoices, GitHub device codes) was being truncated with ellipsis. The feature allows users to see complete tool parameters without terminal width-based truncation.
Key Changes:
- Added thread-local state management for the full output toggle
- Modified truncation logic to respect the toggle setting
- Integrated the toggle command into the session loop with user feedback
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| crates/goose-cli/src/session/output.rs | Added thread-local state for toggle, getter/setter functions, modified print_value() to check toggle before truncation, and added unit test |
| crates/goose-cli/src/session/mod.rs | Added handler for ToggleFullToolOutput command with clear user feedback messages |
| crates/goose-cli/src/session/input.rs | Added /r command parsing, updated help text with command description, and added unit test |
This was referenced Dec 11, 2025
d770cf0 to
4ed579c
Compare
DOsinga
approved these changes
Jan 5, 2026
Collaborator
Author
The original issue mentioned Claude code uses ctrl+r so as we are using slash commands, I thought /r would be better |
4ed579c to
fc15551
Compare
Signed-off-by: Abhijay007 <Abhijay007j@gmail.com>
Signed-off-by: Abhijay007 <Abhijay007j@gmail.com>
fc15551 to
ca97b9e
Compare
zanesq
added a commit
that referenced
this pull request
Jan 9, 2026
…ased * 'main' of github.com:block/goose: feat: add hotkey to toggle full tool output display (#6067)
fbalicchia
pushed a commit
to fbalicchia/goose
that referenced
this pull request
Jan 13, 2026
Signed-off-by: Abhijay007 <Abhijay007j@gmail.com>
10 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes: #3196
PR Description
This PR aims to implement a feature request to allow users to view complete tool output without truncation. It resolves issues where important information (such as Lightning invoice codes and GitHub device codes) was being cut off with
"..."ellipsis.Changes made :
/rcommand to toggle full tool output modeprint_value()to respect toggle when truncatingToggleFullToolOutputhandler in session loop/rcommand ininput.rsType of Change
AI Assistance
Testing
Added tests for the fix and also tested via CLI by running different commands.
Screenshots / Demos (for UX changes)
Before:

After:
